<template>
	<view>
		<view id="wg-name">
			<text selectable>{{thisCptt? thisCptt.name.split('=>')[0]:'loading...'}}</text>
		</view>
		<br>
		
		<br>
		{{thisCptt}}
	</view>
</template>

<script>
	export default {
		data() {
			return {
				id:0
			}
		},
		onLoad(options) {
			
			const id = options.id
			this.id = id
			console.log(this.id)
			// this.getApplayInfo()
		},
		methods: {
			
		},
		computed:{
			thisCptt(){
				return this.$store.getters.getCpttById(this.id)
			}
		},
		// watch:{
		// 	thisCptt(e){
		// 		console.log(e)
		// 	}
		// }
	}
</script>

<style>
#wg-name{
	font-size: 40rpx;
	font-weight: 700;
}
</style>
